From fed071ca96752f77cbe6a9b0627361b83b881717 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 14 May 2020 14:33:57 +0200 Subject: [PATCH] GdkX11DragSurface: set visible state and invalidate on present Without this we won't actually draw the surface. --- gdk/x11/gdksurface-x11.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c index 19f8911f91..9353e01f9b 100644 --- a/gdk/x11/gdksurface-x11.c +++ b/gdk/x11/gdksurface-x11.c @@ -5128,7 +5128,10 @@ gdk_x11_drag_surface_present (GdkDragSurface *drag_surface, GdkSurface *surface = GDK_SURFACE (drag_surface); gdk_x11_surface_toplevel_resize (surface, width, height); + gdk_synthesize_surface_state (surface, GDK_SURFACE_STATE_WITHDRAWN, 0); + _gdk_surface_update_viewable (surface); gdk_x11_surface_show (surface, FALSE); + gdk_surface_invalidate_rect (surface, NULL); return TRUE; } -- 2.30.2